package com.test.learnkotlin


/**
 *Author: chinadragon
 *Time: 2024/3/10 22:53
 */

fun main(){
//    val person1 = Person(13245601111)
//    val person2 = Person("测试1",13245602222)
//    val person3 = Person("测试3",20,13245601234)
    //注意在Person类里重写了 toString 方法
//    println("person1：${person1}")
//    println("person2：${person2}")
//    println("person3：${person3}")

//    val constructors = Constructors(100)

    val derived1 = Derived1("Kotlin开发语言","Android")
    println("size = ${derived1.size}")

}